import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant'
import 'vant/lib/index.css'
// import './iconfont/iconfont.css'
import VueTouch from 'vue-touch'
import VueWechatTitle from 'vue-wechat-title'
import ECharts from "vue-echarts";
import HeaderComp from "@/components/HeaderComp";
import FhbEmpty from '@/components/FhbEmpty'
import method from './utils/method.js' //全局函数方法
import vConsole from 'vconsole' //调试工具
import VueClipboard from 'vue-clipboard2'
import { checkWordFun,checkWordBaseFormRule } from "./utils/checkWord";
import "./permission"; // 权限

import 'echarts/lib/chart/line'
import 'echarts/lib/component/polar'
import "echarts/lib/component/legend"

if(process.env.NODE_ENV !== 'production'){
  // 移动端打印
  Vue.prototype.$vConsole = new vConsole()
}

Vue.component("HeaderComp", HeaderComp);
Vue.component('FhbEmpty', FhbEmpty)
Vue.component('v-chart', ECharts)

Vue.prototype.$checkWordFun = checkWordFun;
Vue.prototype.$checkWordBaseFormRule = checkWordBaseFormRule;

Vue.use(VueClipboard)
Vue.use(method)
Vue.use(VueWechatTitle)
Vue.use(VueTouch, {
  name: 'v-touch',
})
Vue.use(Vant)

Vue.config.productionTip = false
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app')
